package com.googlecode.grs.environment;

import java.awt.Color;
import java.awt.Graphics;

/**
 * Models an IR beacon for the iRobot Create, Also signifies the end of a maze
 * 
 * @author anand
 * 
 */

public class Beacon extends PhysicalObject {

	/**
	 * New beacon at a provided point
	 * 
	 * @param x
	 * @param y
	 */
	public Beacon(double x, double y) {
		super(x, y);
	}

	/**
	 * Beacons don't intersect anything
	 */
	public boolean intersects(double x, double y) {
		// nothing intersects the beacon
		return false;
	}

	/**
	 * Paint method
	 * 
	 * @param g
	 *            Graphics object to paint with
	 * @see SimulationEnvironment
	 */
	public void draw(Graphics g) {
		g.setColor(Color.RED);
		g.drawOval((int) x, (int) y, 10, 10);
	}
}